<?php
/**
* ResMania - Reservation System Framework http://resmania.com
* Copyright (C) 2011  ResMania Ltd.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.

* You should have received a copy of the GNU General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
*
*
*
* User end dispatcher
*
* @access       public
* @author       Rob/Valentin
* @copyright    2011 ResMania Ltd.
* @version      1.2
* @link         http://docs.resmania.com/api/
* @since        06-2011
*/

class RM_User_Controller extends RM_Controller {
    public function postDispatch() {
        parent::postDispatch();

        $config = new RM_Config();
        if ($config->getValue('rm_config_show_poweredby_logo')==='1'){
            $this->writePoweredByIcon();
        }
        
    }

    public function writePoweredByIcon(){
        echo '<div style="float: right;padding: 10px 20px 10px 10px;">
              <a href="http://resmania.com" target="_blank">
              <img src="" alt="Powered By ResMania" />
              <div style="font-size: 9px; color: #a9a9a9;"><b>Powered By <span style="color: #FF6600;">Res</span><span style="color: #000;">Mania</span></b></div>
              </a></div><div style="clear: both;"></div>';
    }
}
